import axios from '@/utils/index.js'
// 获取 搜索 建议
export const getSearchSuggestions = (q) => axios({
  methods: 'get',
  url: '/v1_0/suggestion',
  params: {
    q
  }
})
// 获取 搜索 结果
export const getSearchResult = (keyword, page, pagesize) => axios({
  method: 'get',
  url: '/v1_0/search',
  params: {
    q: keyword,
    page,
    per_page: pagesize
  }
})
